import sys
import os

# 添加项目根目录到Python路径
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from app.models.database import engine, MockApiConfig
from sqlalchemy import text

# 创建一个连接
with engine.connect() as connection:
    # 执行DESC命令查看表结构
    result = connection.execute(text("DESC mocks;"))
    print("Table structure for mocks:")
    for row in result:
        print(row)